def f(x):
    return x*x

L=map(f,[1,2,3,4,5,6,7,8,9])
print(list(L))


L=map(lambda n:n*n,[1,2,3,4,5,6,7,8,9])
print(list(L))


def f2(x,y):
    return x+y
L=map(f2,[1,2,3,4],[12,34,56,90])
print(list(L)) 